<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>   
<%@ taglib prefix="html-el" uri="http://struts.apache.org/tags-html-el" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>科系列表</title>
</head>
<body>
	<h1>${school.name }科系列表</h1>
	<ul>
		<c:forEach items="${faculties}" var="faculty">
			<li>
				科系ID：${faculty.id } 
				科系名称: ${faculty.name } 
				科系介绍：${faculty.description }
				<a href="faculty.do?method=updateForm&id=${faculty.id }">修改</a>
				<a href="faculty.do?method=delete&id=${faculty.id }">删除</a>
				<a href="classes.do?method=list&facultyId=${faculty.id }">该科系所有班级</a>
				<a href="classes.do?method=addForm&facultyId=${faculty.id }">增加班级</a>
			</li>			
		</c:forEach>
	</ul>
	<a href="faculty.do?method=addForm&schoolId=${school.id }">为${school.name }增加科系</a>
	<a href="school.do?method=list">返回学院列表</a>
</body>
</html>